package com.huawei.appmarket.service.appdetail.view.card;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.huawei.appgallery.jsonkit.api.JsonBean;
import com.huawei.appmarket.framework.widget.RenderMachineImageView;
import java.util.LinkedHashMap;
import java.util.List;
import o.dgh;
import o.doi;
import o.ekb;
import o.eqp;
import o.evx;
import o.ewm.j;

public class DetailAppIntroTranslateCard extends DetailDescCardEx {
    private RenderMachineImageView ʻॱ;
    private ekb ॱˎ = null;
    private String ॱᐝ;

    private static LinkedHashMap<String, String> ͺ() {
        LinkedHashMap<String, String> linkedHashMap = new LinkedHashMap();
        String ॱ = doi.ॱ();
        String ॱ2 = eqp.ॱ();
        linkedHashMap.put("local", ॱ);
        linkedHashMap.put("serviceCountry", ॱ2);
        return linkedHashMap;
    }

    public View ˊ(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        View ˊ = super.ˊ(layoutInflater, viewGroup, bundle);
        this.ʻॱ = (RenderMachineImageView) this.ˊ.findViewById(j.ˏˍ);
        this.ʻॱ.setOnClickListener(new evx(this) {
            final /* synthetic */ DetailAppIntroTranslateCard ˎ;

            {
                this.ˎ = r1;
            }

            public void ˋ(View view) {
                if (this.ˎ.ॱˎ == null) {
                    this.ˎ.ॱˎ = new ekb();
                }
                this.ˎ.ˋॱ();
                this.ˎ.ॱˎ.ॱ(this.ˎ.ˊ.getContext(), this.ˎ.ॱᐝ);
            }
        });
        return ˊ;
    }

    private void ˋॱ() {
        String str = "";
        if ("1".equals(this.ॱᐝ)) {
            str = "091301";
        } else if ("2".equals(this.ॱᐝ)) {
            str = "091302";
        }
        dgh.ˋ(str, ͺ());
    }

    public boolean ˊ(List<JsonBean> list) {
        if (!super.ˊ(list)) {
            return false;
        }
        this.ॱᐝ = this.ॱˊ.ﹳ();
        ॱˊ();
        return true;
    }

    private void ॱˊ() {
        if ("1".equals(this.ॱᐝ)) {
            this.ʻॱ.setVisibility(0);
            this.ʻॱ.setActive(false);
        } else if ("2".equals(this.ॱᐝ)) {
            this.ʻॱ.setVisibility(0);
            this.ʻॱ.setActive(true);
        } else {
            this.ʻॱ.setVisibility(8);
        }
    }
}
